parsePartialJson

Parse possibly-partial JSON. Mirrors Vercel AI SDK v6 parsePartialJson:

The repair runs on the ORIGINAL raw text, not on intermediate output.